package com.csw.dangdang.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.csw.dangdang.entity.Category;

/**
 * @author 1
 */
@Mapper
public interface CategoryDao {
	List<Category> queryAll();

	Category queryByparentid(@Param("name") String name, @Param("levels") String levels);

	List<Category> queryParentId(String id);

	List<Category> queryAllCategory(String levels);

	void insert(Category category);

	void deleteBy(String id);

	List<Category> queryfirstAndSecond(String levels);

	List<Category> querySecondCategoryByFirstCategoryId(String id);

	Category queryCategoryId(String id1);

}
